package com.central.common.entity;


import lombok.Data;

import java.io.Serializable;

@Data
public class QueryBean implements Serializable {


    private static final long serialVersionUID = 1L;

    public static final String ASCENDING_ORDER = "asc";
    public static final String DESCENDING_ORDER = "desc";
    private static final String DEFAULT_ORDER = DESCENDING_ORDER;
    private static final String DEFAULT_ORDER_BY = "createDate";
    private static final int DEFAULT_PAGE_START = 1;
    public static final int DEFAULT_PAGE_SIZE = 10;
    public static final int MAX_PAGE_SIZE = 999999;

    private String orderBy = DEFAULT_ORDER_BY;
    private String order = DEFAULT_ORDER;
    private int pageStart = DEFAULT_PAGE_START;
    private int pageSize = DEFAULT_PAGE_SIZE;


}
